package com.example.pojo.vo;

import java.io.Serializable;

/**
 * 
 * @TableName division
 */
public class DivisionStandardVO implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 科室名
     */
    private String office;

    /**
     * 简介
     */
    private String intro;

    /**
     * 
     */
    private String url;

    /**
     * 当前剩余床位
     */
    private Integer bedsum;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 科室名
     */
    public String getOffice() {
        return office;
    }

    /**
     * 科室名
     */
    public void setOffice(String office) {
        this.office = office;
    }

    /**
     * 简介
     */
    public String getIntro() {
        return intro;
    }

    /**
     * 简介
     */
    public void setIntro(String intro) {
        this.intro = intro;
    }

    /**
     * 
     */
    public String getUrl() {
        return url;
    }

    /**
     * 
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * 当前剩余床位
     */
    public Integer getBedsum() {
        return bedsum;
    }

    /**
     * 当前剩余床位
     */
    public void setBedsum(Integer bedsum) {
        this.bedsum = bedsum;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DivisionStandardVO other = (DivisionStandardVO) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOffice() == null ? other.getOffice() == null : this.getOffice().equals(other.getOffice()))
            && (this.getIntro() == null ? other.getIntro() == null : this.getIntro().equals(other.getIntro()))
            && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
            && (this.getBedsum() == null ? other.getBedsum() == null : this.getBedsum().equals(other.getBedsum()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOffice() == null) ? 0 : getOffice().hashCode());
        result = prime * result + ((getIntro() == null) ? 0 : getIntro().hashCode());
        result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
        result = prime * result + ((getBedsum() == null) ? 0 : getBedsum().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", office=").append(office);
        sb.append(", intro=").append(intro);
        sb.append(", url=").append(url);
        sb.append(", bedsum=").append(bedsum);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}